 <?php 

include("../db/opendb.php");


//$sql = "SELECT Username from Users Where Username = '".$_POST['username']."'";
//$result2 = mysql_query($sql) or die ("SQL Error".mysql_error());


$query = "INSERT into Users (Username, Password, Email, Verified, Date_Created) values ('".$_POST['username']."', '".$_POST['password']."', '".$_POST['email']."', '1', '".date('Y-m-d')."')";
$result = mysql_query($query) or die ("SQL Error".mysql_error());
$insert_id = mysql_insert_id();

echo $insert_id;
?>

